﻿jQuery(document).ready(function () {





    $('#myCarousel').carousel({
        interval: 2000
    })


    $(".save-answer-no").bind("click", function () {
        var idAnswer = $(this).attr("value");
        var idRequest = 4, idUser = 2;
        $.ajax({
            url: "\ApprovalFormAnswer",
            type: "post",
            data: { idAnswer: parseInt(idAnswer), idRequest: parseInt(idRequest), idUser: parseInt(idUser) },
            dataType: "json",
            success: function (resp) {
                alert("monita bonita");
            }
        });

    });


    $(".save-answer-yes").bind("click", function () {
        var idAnswer = $(this).attr("value");
        var idRequest = 4, idUser = 2;
        $.ajax({
            url: "\ApprovalFormAnswer",
            type: "post",
            data: { idAnswer: parseInt(idAnswer), idRequest: parseInt(idRequest), idUser: parseInt(idUser) },
            dataType: "json",
            success: function (resp) {
                alert("monita bonita");
            }
        });

    });





});